class MainModel {
  int code;
  String msg;
  String time;
  var data;

  MainModel({this.code, this.msg, this.time, this.data});

  MainModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    time = json['time'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['time'] = this.time;
    data['data'] = this.data;
    return data;
  }
}

// 货物信息简述
class ShopSetModel {
  int code;
  String msg;
  String time;
  List<ShopSetItemModel> data;

  ShopSetModel({this.code, this.msg, this.time, this.data});

  ShopSetModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    time = json['time'];
    if (json['data'] != null) {
      data = new List<ShopSetItemModel>();
      json['data'].forEach((v) {
        data.add(new ShopSetItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['time'] = this.time;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ShopSetItemModel {
  int id;
  String goodsName;
  String explain;

  ShopSetItemModel({this.id, this.goodsName, this.explain});

  ShopSetItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    goodsName = json['goods_name'];
    explain = json['explain'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['goods_name'] = this.goodsName;
    data['explain'] = this.explain;
    return data;
  }
}

// 取消/放弃原因
class DisOrderModel {
  int code;
  String msg;
  String time;
  List<DisOrderItemModel> data;

  DisOrderModel({this.code, this.msg, this.time, this.data});

  DisOrderModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    time = json['time'];
    if (json['data'] != null) {
      data = new List<DisOrderItemModel>();
      json['data'].forEach((v) {
        data.add(new DisOrderItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['time'] = this.time;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class DisOrderItemModel {
  int id;
  String content;

  DisOrderItemModel({this.id, this.content});

  DisOrderItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    content = json['content'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['content'] = this.content;
    return data;
  }
}
